<div>
		<div id="inline2" style="width:600px; min-height:300px; padding:10px 10px;">
		<div class="PopUp">
		<p class="Title">Assign to</p>
		<div class="NewTask">
		<form enctype="multipart/form-data" id="messageform" name="messageform" method="POST" action="/tasks/index/assign-task/<?php echo $ctx->task_id.'/'.$ctx->event_id ;?>" >
        <div class="AsgWid" style="display:block; border:none; width:100%;">
        <?php foreach($ctx->contacts as $contacts) { ?>
        <div class="BotBorder">
        <div class="Fleft pad_t5"><input type="checkbox" name="check_list[]" id="check_list" value="<?php echo $contacts['contact_id'];?>"/></div>
        <div class="Fleft pad_t5 pad_r15 "><img src="/Uploads/users/<?php echo $contacts['photo'];?>" height="40px" width="40px" /></div>
        <div class="Fleft pad_t5 pad_r15 pad_b15 wid150"><?php echo $contacts['first_name'];?></div>
        <div class="clear"></div>
        </div>
        <? } ?>
		<div class="clear"></div>
        
        </div>
        <div style="padding-left:250px; padding-top:20px"><a class="Button" href="javascript:void(0);" onclick="validate(document.messageform);"><span>Save</span></a><a class="Button" href="#"><span>Cancel</span></a></div>
		<div class="clear"></div>
		</form>
		</div>
		</div>
		</div>
	</div>
<script type="text/javascript">
//<![CDATA[	

function validate(frm)
{
	
	$('#messageform').submit();
}

//]]>
</script>
